import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listServiceRequest(query) {
  return request({
    url: '/hotel/serviceRequest/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getServiceRequest(serviceRequestId) {
  return request({
    url: '/hotel/serviceRequest/' + serviceRequestId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addServiceRequest(data) {
  return request({
    url: '/hotel/serviceRequest',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateServiceRequest(data) {
  return request({
    url: '/hotel/serviceRequest/update',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delServiceRequest(serviceRequestId) {
  return request({
    url: '/hotel/serviceRequest/' + serviceRequestId,
    method: 'delete'
  })
}

export function getListNow() {
  return request({
    url: '/hotel/serviceRequest/getListNow',
    method: 'get'
  })
}



// 新增【请填写功能名称】
export function addService(data) {
  return request({
    url: '/hotel/serviceRequest/addService',
    method: 'post',
    data: data
  })
}

export function cancelMyRequest(data) {
  return request({
    url: '/hotel/serviceRequest/cancelMyRequest',
    method: 'post',
    data: data
  })
}
